"""tongxiaoyong_com URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from jiazheng import views
from open_token import views as open_views
from django.conf.urls import url
from django.views.static import serve
from tongxiaoyong_com.settings import STATIC_ROOT


urlpatterns = [
    path('menu/get_list', views.getList),
    path('menu/get_detail', views.getDetail),
    path('user/get_token', views.getToken),
    url(r'^$',views.index),
    url(r'^static/(?P<path>.*)$', serve, {"document_root": STATIC_ROOT}),
    path('admin/', admin.site.urls),
    path('open/rewrite_auth_code_handler', open_views.rewrite_auth_code_handler),
    path('open/get_token', open_views.getToken),
    path('open/wx_notify', open_views.wxNotify),
    url(r'open/callback/(.*)$', open_views.callBack)
]
